<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8;">
</head>
<body>

    <input type="button" onclick="alert('test');return false;" value="alert"  />
    <input type="button" onclick="_open('ModalDialog.html');return false;" value="open"  />
    <input type="button" onclick="_showModalDialog('ModalDialog.html');return false;" value="showModalDialog"  />
    <script language="javascript">
        function _open(url)
        {            var iHeight = window.screen.availHeight - 20;
            var iWidth = window.screen.availWidth - 20;
            var iTop = iHeight - 10;
            var iLeft = iWidth - 10;
            window.open(url, "", 'height=' + iHeight + ',innerHeight=' + (iHeight) + ',width=' + iWidth + ',innerWidth=' + iWidth + ',top=' + iTop + ',left=' + iLeft + ',status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no');
        }
        function _showModalDialog(url)
        {
            window.showModalDialog(url);
        }
    </script>
    
</body>
</html>
